Go and work
Honor the One who is working on you.
Do so by making beautiful things,
Be serving in beautiful ways,
By speaking up for the weak whose beauty is being maligned,
By filling this city with the aroma of good and beautiful workReflect the beautiful work of your heavenly Father,
Nourished now by the grace and mercy of Christ,
In the power of the Holy Spirit.God has already accomplished the great work.
God goes before you and behind you.
God works at your side.(Matthew Kaemingk & Cory B. Willson, Work and Worship, p. 140)
| Type | Object type in Python | Example |
|---|---|---|
| Integer number | int |
123 |
| Decimal number (floating point) | float |
3.14 |
| Logic value | bool |
True, False |
| Text | string |
"Hello World!" |
"hello"
hello
132
var_1
truev
True
{ ( + - * / \ ; . , ?When Python sees the operator = it does the following:
Evaluates the right-hand side (rhs)
The right of the assignment operator can be:
Objects: age = 21
Variables: my_cost = your_cost
Expressions: x = (x + 1) * y
Assigns the resulting object to the variable on the left-hand side (lhs)
Only a single variable is allowed on the left side!
For example, x + 1 = 2 is WRONG SYNTAX!
is the same as:
You can use compound assignment with all operators!
Example: what will this expression do?
int(3.14) results in 3int("42") results in 42int("hello") raises a ValueErrorfloat(7) results in 7.0float("3.14") results in 3.14float("abc") raises a ValueErrorstr(123) results in "123"str(9.99) results in "9.99"# Convert float to integer
num = int(5.7) # 5
# Convert integer to string
text = str(123) # "123"
# Convert string to float
pi = float("3.14159") # 3.14159